<script>

</script>
<style>
    #table{
        display: none;
    }
</style>
<div class="panel panel-default panel-intro">
    <div class="panel-body">
        <div id="myTabContent" class="tab-content">
            <div class="tab-pane fade active in" id="one">
                <div class="widget-body no-padding">
                    <div id="toolbar" class="toolbar">
                        <a href="javascript:;" class="btn btn-primary btn-refresh" title="{:__('Refresh')}" ><i class="fa fa-refresh"></i> </a>
<!--                        <a href="javascript:;" class="btn btn-success btn-add {:$auth->check('crm/buser/add')?'':'hide'}" title="{:__('Add')}" ><i class="fa fa-plus"></i> {:__('Add')}</a>
                        <a href="javascript:;" class="btn btn-success btn-edit btn-disabled disabled {:$auth->check('crm/buser/edit')?'':'hide'}" title="{:__('Edit')}" ><i class="fa fa-pencil"></i> {:__('Edit')}</a>
                        <a href="javascript:;" class="btn btn-danger btn-del btn-disabled disabled {:$auth->check('crm/buser/del')?'':'hide'}" title="{:__('Delete')}" ><i class="fa fa-trash"></i> {:__('Delete')}</a>
                        <a href="javascript:;" class="btn btn-danger btn-import {:$auth->check('crm/buser/import')?'':'hide'}" title="{:__('Import')}" id="btn-import-file" data-url="ajax/upload" data-mimetype="csv,xls,xlsx" data-multiple="false"><i class="fa fa-upload"></i> {:__('Import')}</a>-->

                       <!-- <div class="dropdown btn-group {:$auth->check('crm/buser/multi')?'':'hide'}">
                            <a class="btn btn-primary btn-more dropdown-toggle btn-disabled disabled" data-toggle="dropdown"><i class="fa fa-cog"></i> {:__('More')}</a>
                            <ul class="dropdown-menu text-left" role="menu">
                                <li><a class="btn btn-link btn-multi btn-disabled disabled" href="javascript:;" data-params="status=normal"><i class="fa fa-eye"></i> {:__('Set to normal')}</a></li>
                                <li><a class="btn btn-link btn-multi btn-disabled disabled" href="javascript:;" data-params="status=hidden"><i class="fa fa-eye-slash"></i> {:__('Set to hidden')}</a></li>
                            </ul>
                        </div>-->
                    </div>
                    <!--表格-->
                    <table id="table" class="table table-striped table-bordered table-hover table-nowrap"
                           data-operate-edit=""
                           data-operate-del=""
                           width="100%">
                    </table>
                    <div class="col-md-6" id="option1" style="height:500px;" >
                        <!--用户识别饼图-->

                    </div>
                    <div class="col-md-6" id="option2" style="height:500px;" >
                        <!--用户识别饼图-->

                    </div>
                    <div class="col-md-12" id="option3" style="height:500px;" >
                        <!--产品人数折线图-->

                    </div>

                </div>
            </div>

        </div>
    </div>
</div>
<script id="customformtpl" type="text/html">
    <form id="cxselectform" class="form-horizontal form-commonsearch nice-validator n-default n-bootstrap" novalidate="" method="post" action="">
        <fieldset>
            <div class="row">
                <div class="form-group col-xs-12 col-sm-6 col-md-4 col-lg-3">
                    <label for="createtime" class="control-label col-xs-4">(图一)添加时间</label>
                    <div class="col-xs-8"><input type="hidden" class="form-control operate" name="createtime-operate" data-name="createtime" value="RANGE" readonly="">
                        <input type="text" class="form-control datetimerange" name="createtime" value="" placeholder="(图一)客户创建时间" id="createtime" data-index="0">
                    </div>
                </div>
                <div class="form-group col-xs-12 col-sm-6 col-md-4 col-lg-3">
                    <label for="allot_date" class="control-label col-xs-4">（图二)分配日期:</label>
                    <div class="col-xs-8">
                        <input type="hidden" class="form-control operate" name="allot_date-operate" data-name="allot_date" value="RANGE" readonly="">
                        <input type="text" class="form-control datetimerange" name="allot_date" value="" placeholder="（图二)客户分配日期" id="allot_date" data-index="1">
                    </div>
                </div>
                <div class="form-group col-xs-12 col-sm-6 col-md-4 col-lg-3">
                    <label for="product" class="control-label col-xs-4">（图三）产品:</label>
                    <div class="col-xs-8">
                        <input type="hidden" class="form-control operate" name="product-operate" data-name="product" value="LIKE" readonly="">
                        <input type="text" class="form-control" name="product" value="" placeholder="（图三）产品名" id="product" data-index="2">
                    </div>
                </div>
                {if condition='$admin_data["name"] neq "销售专员"'}
                <!--超管和销售经理才有分组筛选权力-->
                    <div class="form-group col-xs-12 col-sm-6 col-md-4 col-lg-2">
                        <label for="product" class="control-label col-xs-4">分组:</label>
                        <div class="col-xs-5">
                            <div class="form-inline" data-toggle="cxselect" data-selects="first,second">
                                <select class="first form-control operate" id="group" name="group_id-operate" data-url='' data-name="group_id">
                                    <option value="">请选择</option>
                                    {foreach name='groupData' item='v'}
                                        <option value="{$v.id}">{$v.name}</option>
                                    {/foreach}
                                </select>
                                <select class="second form-control operate" id="admin_id" name="admin_id-operate" data-name="admin_id" data-url="crm/group/admin_group" data-query-name="pid">
                                    <option value="">请选择</option>
                                    {foreach name='xiaoData' item='v'}
                                        <option value="{$v.id}">{$v.nickname}</option>
                                    {/foreach}
                                </select>
                            </div>
                        </div>
                    </div>
                {/if}
                <div class="form-group col-xs-12 col-sm-6 col-md-4 col-lg-2">
                    <div class="col-sm-8 col-xs-offset-4">
                        <button type="submit" class="btn btn-success" formnovalidate="">提交</button>
                        <button type="reset" class="btn btn-default">重置</button>
                    </div>
                </div>
            </div>
        </fieldset>
    </form>
</script>
